// import axios from 'axios'
import http from '@/http'
// 登录
export function login(parameter){
  return http({
    url: "/yk/admin/userLogin",
    method: "post",
    data: parameter
  });
}
// 发送验证码
export function getUserByAccount (params) {
  return http({
    url: '/yk/admin/getUserByAccount',
    method: 'post',
    data: params
  })
}

// 获取总权益
export function getTotals (params) {
  return http({
    url: '/yk/interests/total',
    method: 'get'
  })
}

//用户登出
export function logout(){
	const result = axios.get('/yk/ygbx/user/logout')
	return result
}

